//package com.industry.framework.core.boot;
//
//import com.industry.framework.core.advice.GenericExceptionHandler;
//import org.slf4j.Logger;
//import org.slf4j.LoggerFactory;
//import org.springframework.boot.SpringApplication;
//import org.springframework.boot.context.event.ApplicationStartedEvent;
//import org.springframework.context.ApplicationListener;
//import org.springframework.context.ConfigurableApplicationContext;
//import org.springframework.stereotype.Service;
//
//import java.time.Duration;
//
///**
// * @Author nbZhuozh
// * @Date 2025-03-27  18:08
// **/
//@Service
//public abstract class CoreApplicationStarter implements ApplicationListener<ApplicationStartedEvent> {
//
//    private static final Logger log = LoggerFactory.getLogger(CoreApplicationStarter.class);
//
//
//    @Override
//    public void onApplicationEvent(ApplicationStartedEvent applicationEvent) {
//
//        cachePreating();
//
//    }
//
//    public void cachePreating(){
//        log.info("开始加载系统缓存..................");
//        systemPreating();
//        log.info("开始加载业务缓存..................");
//        bizPreating();
//        afterPreatingSet();
//    }
//
//    //系统数据 缓存预热
//    public abstract void systemPreating();
//
//    //业务数据 缓存预热
//    public abstract void bizPreating();
//
//    public abstract void afterPreatingSet();
//
//}
